<template>
	<view @click="setSearch">
		<view  class="Box" :style="{'background-color':bgcolor}">
			<view class="min" :style="{'border-radius':radius+'px'}"><text>搜索</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		props:{
			bgcolor:{
				type:String,
				default:'#c00000'
			},
			radius:{
				type:Number,
				default:18
			}
		},
		methods:{
			setSearch(){
				this.$emit('myclick')
			}
		}
	}
</script>

<style lang="scss">
.Box{background-color:#c00000;height:88rpx;}
.min{width:98%;height: 68rpx;font-size:14px;background-color:#fff;color:#ccc;line-height: 68rpx;text-align: center;border-radius:16px;margin: 0 auto;padding-top:10rpx;}
</style>
